#!/usr/bin/ksh


LOG_FILE=${0}.out 

echo '---------------------' >  $LOG_FILE

CMD_STR="
#export LANG=en_US
#export NLS_LANG="simplified chinese_china".zhs16gbk
#export NLS_DATE_FORMAT='yyyy-mm-dd hh24:mi:ss' 
#export ORACLE_BASE=/ora10g
#export ORACLE_HOME=$ORACLE_BASE/db
#export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib:/usr/local/lib
#export PATH=$PATH:$ORACLE_HOME/bin
#export ORACLE_SID=trff
#rman target sys/oracle@dgx  cmdfile=/script/backup_full.rman  log=/script/backup_full.rman.log  
"

su - oracle -C  "$CMD_STR"  >>  $LOG_FILE  2>&1
$RSTAT=$?

if [ $RSTAT ]
then
        echo "backup ok"
fi


exit $RSTAT









